package cn.zyp.stusystem.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.Data;

@Data
@TableName("student")
public class Student {

    @TableId(type = IdType.AUTO)
    private Long id;

    @TableField("name")
    private String name;

    @TableField("age")
    private Integer age;

    @TableField("gender")
    private Integer gender;

    @TableField("address")
    private String address;

    @TableField("grade")
    private Integer grade;

    @TableField("class_id")
    private Long classId;

    @TableField(exist = false)
    private String className;
}
